/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package CONTROLLER;

import VIEW.ProjetoFinal;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.OutputStreamWriter;
import java.net.URL;
import java.nio.charset.Charset;
import java.util.ResourceBundle;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Label;

/**
 *
 * @author MatheuseJessica
 */
public class AboutController implements Initializable{
    @FXML
    Label lb_texto;
    @FXML
    public void voltarCaixa(){
        ProjetoFinal.getInstance().gotoCaixa();
    }
    @Override
    public void initialize(URL url, ResourceBundle rb) {
        try {
            BufferedReader in = new BufferedReader(new FileReader("about.txt"));
            String str = "";
            while (in.ready()) {
            str += in.readLine();
            str += "\n";
            }
            lb_texto.setText(str);
            in.close();
            } catch (Exception e) {
            }
    }
    
}
